package com.itany.corejava.code07_常用类.枚举;

/**
 * @author MissChen
 * @date 2024年03月02日 13:32
 */
public class Sport {
    private String name;//运动的项目
    // private String season;//适合的季节
    private Season season;//适合的季节

    public Sport(String name, Season season) {
        this.name = name;
        this.season = season;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Season getSeason() {
        return season;
    }

    public void setSeason(Season season) {
        this.season = season;
    }

    @Override
    public String toString() {
        return "Sport{" +
                "name='" + name + '\'' +
                ", season=" + season +
                '}';
    }
}
